package lab02.test10;

public class Test {
    public static void main(String[] args) {
        People people = new People();
        people.name = "张三" ;
        people.sex =      "男";
        people.age = 19;
        System.out.println(people.toString());

        ChinaPeople chinaPeople= new ChinaPeople();
        chinaPeople.name = "李四";
        chinaPeople.sex = "男";
        chinaPeople.country = "中国";
        chinaPeople.age = 25;
        System.out.println(chinaPeople.toString());

        BeiJingPeople beiJingPeople = new BeiJingPeople();
        beiJingPeople.name = "王五";
        beiJingPeople.sex = "男";
        beiJingPeople.province = "北京";
        beiJingPeople.age = 25;
        System.out.println(beiJingPeople.toString());


        AmericanPeople americanPeople = new AmericanPeople();
        americanPeople.name = "赵六";
        americanPeople.sex = "男";
        americanPeople.country = "American";
        americanPeople.age = 35;
        System.out.println(americanPeople.toString());
    }
}
